/***************************************************************
*  NAME:  
*	    rsa
*  SYNOPSIS:
*    	    rsa include file
*  DESCRIPTION:
*     	    
*  HISTORY:
*      	         pascal - Jan 21, 2012:  Created.
*
***************************************************************/
#ifndef _RSA_H__
#define _RSA_H__

#include <gmp.h>

typedef struct  {
	mpz_t exponent;
	mpz_t modulus;
} rsa_key_t;


void rsa_init(rsa_key_t*);
void rsa_free(rsa_key_t*);
int  rsa_decrypt(unsigned char* cipher, unsigned int size, unsigned char** decipher, rsa_key_t *);
int  rsa_encrypt(unsigned char* cipher, unsigned int size, unsigned char** decipher, rsa_key_t *);


#endif /* RSA */
